﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class father
    {
        public string heroname { get; set; }
        public int speed { get; set; }
        public int attack { get; set; }
        public int defense { get; set; }
        public father(string heroname, int speed, int attack, int defense) {

            this.heroname = heroname;
            this.speed = speed;
            this.attack = attack;
            this.defense = defense;
        }
        public void speak() {

            Console.WriteLine("名字：{0} 速度：{1}  攻击：{2} 防御：{3}",heroname,speed,attack,defense);

        }

    }
}
